# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.676.12.6 -> 1.676.12.7 # arch/ia64/kernel/acpi.c 1.7 -> 1.8 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/09/27 bjorn_helgaas@hp.com 1.676.12.7 # ia64: If more than NR_CPUS found, ignore the extras. # -------------------------------------------- # diff -Nru a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c --- a/arch/ia64/kernel/acpi.c Wed Oct 8 09:07:01 2003 +++ b/arch/ia64/kernel/acpi.c Wed Oct 8 09:07:01 2003 @@ -341,6 +341,7 @@ acpi_parse_lsapic (acpi_table_entry_header *header) { struct acpi_table_lsapic *lsapic; + int phys_id; lsapic = (struct acpi_table_lsapic *) header; if (!lsapic) @@ -348,13 +349,21 @@ acpi_table_print_madt_entry(header); - printk("CPU %d (0x%04x)", total_cpus, (lsapic->id << 8) | lsapic->eid); + phys_id = (lsapic->id << 8) | lsapic->eid; + + if (total_cpus == NR_CPUS) { + printk(KERN_ERR PREFIX "Ignoring CPU (0x%04x) (NR_CPUS == %d)\n", + phys_id, NR_CPUS); + return 0; + } + + printk("CPU %d (0x%04x)", total_cpus, phys_id); if (lsapic->flags.enabled) { available_cpus++; printk(" enabled"); #ifdef CONFIG_SMP - smp_boot_data.cpu_phys_id[total_cpus] = (lsapic->id << 8) | lsapic->eid; + smp_boot_data.cpu_phys_id[total_cpus] = phys_id; if (hard_smp_processor_id() == smp_boot_data.cpu_phys_id[total_cpus]) printk(" (BSP)"); #endif